package com.luyu.req;

import com.luyu.group.AgeGroup;
import com.luyu.group.NameGroup;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

/**
 * @Author lyh
 */
@Data
public class UserGroup {

    @NotEmpty(message = "名称",groups = {NameGroup.class})
    private String name;

    @Max(value = 3,message = "年龄不可超过{value}岁",groups = {AgeGroup.class})
    private Integer age;
}
